<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
	<head>
		<meta charset="utf-8" />
		<title>人事档案登记</title>
		<!-- bootstrap-table -->
		
		<style>
		
			#file{
				height: 25px;
				width: 130px;
			}
			#add td{
			padding-top: 8px;
			
			}
			 #add input,select{
				margin-left: 20px;
					margin-right: 70px;
			}
			#tt{
				text-decoration :none;
				display: block;
				margin-left: 165px;
				margin-top: -20px;
				
			}
			body{
				font-size: 15px;
				
			}
			textarea{
				margin-left: 20px;
				
			}
			#pf_sex{
				width: 144px;
			}
			#add span{
				margin-left: -70px;
			}
			#select{
					border: 1px solid black;
				width: 300px;
				height: 200px;
				margin-top: -100px;
				margin-right: 100px;
			}
			#pf_address{
				width: 550px;
				
			}
			#pf_education,#pf_salary{
				width: 140px;
			}
			
			/*确定  返回*/
			#aj{
				margin-top: 15px;
				margin-left: 370px;
			}
			#aj #add{
				
				margin-right: 20px;
			}
			#aj input{
				width: 60px;
				height: 25px;
					line-height:10px;
			}
		
         
       
		/*照片上传*/
		#result{
				border: 1px solid black;
				width: 173px;
				height: 170px;
			/*	display: block;*/
			position: absolute;
				margin-top: -90px;
				line-height: 150px;
				text-align: center;
				
				
		}
		#result img{
			width: 169px;
			height: 169px;
		}
		table input{
			margin-left: 10px;
		}
		#tct{
			position: absolute;
			top:85px;
			left: 185px;
		}
		 #record_number{
		width: 560px;
		} 
		#pf_state{
			width:145px;
		}
		</style> 
	
		<script src="${pageContext.request.contextPath }/static/js/jquery-1.12.4.js"></script>

	</head>
	<body>
		<p>人事管理>人事档案管理>档案登记</p>
		<div id="zd">
		<form id="myForm" name="myForm" onsubmit="return validateForm()" method="post"  enctype="multipart/form-data">
				<input  type="text" id="position_id" name="position_id" hidden="hidden" /><!-- 职位id -->
			<table id="add">
			<%-- <c:forEach var="List" items="${List }"> --%>
				<tr>
					<td><label>档案编码:</label></td>
					<td colspan="3"><input type="text" id="record_number" name="record_number" value="${List.record_number }" readonly="true">
				</tr>
			
				<tr>
			<td><label>所属部门:</label></td>
			<td><input type="text" class="oz_name" id="oz_name" name="oz_name" value="${List.oz_name }" readonly="true">
			 </td>
			 <td>
			 		<label>档案状态:</label>
			 </td>
			 <td>
			 	<select id="pf_state" name="pf_state">
						<c:if test="${ftList != null }">
						   <option value="0">--请选择--</option>
						   <c:forEach var="role" items="${ftList}">
						   		<option <c:if test="${role.id == List.pf_state }">selected="selected"</c:if>
						   		value="${role.id}">${role.files}</option>
						   </c:forEach>
						   </c:if>
			 	</select>
			 </td>
			 <!--空-->
			 <td></td>
			 <td colspan="3" rowspan="5" >
		<span id="result">
			<img alt="" src="${pageContext.request.contextPath }/static/upload/${List.pf_picture}" width="173px",height="170px">
			 </span>
			 </td>
			
			</tr>
			 <tr>
			 	<td>
			 	
				<label>职位名称:</label>
    	</td>
    	<td>
		<input type="text" id="position_name" name="position_name"  value="${List.position_name }" readonly="true">
    	</td>
    	<td>
    		<label>职位编码:</label>
    	</td>
    	<td>
    		<input type="text" class="position_code" id="position_code" name="position_code" value="${List.position_code }" readonly="true">
    	</td>
    	
    	 <!--空-->
		 <td colspan="2"></td>
			</tr>
			
			<tr>
			 	<td>
				<label>姓名:</label>
    	</td>
    	<td>
    		<div>
				<input type="text" id="pf_name" name="pf_name" value="${List.pf_name}">
    	 	</div>
    	</td>
    	<td>
    		<label>性别:</label>
    	</td>
    	<td>
    		<select id="pf_sex" name="pf_sex">
    	 <option value="请选择">--请选择--</option>
    				<c:choose>
    					<c:when test="${List.pf_sex=='男'}">
    						<option selected="selected" value="男" >男</option>
    						<option value="女" >女</option>
    					</c:when>
    					<c:otherwise>
    						<option  value="男" >男</option>
    						<option selected="selected" value="女" >女</option>
    					</c:otherwise>
					</c:choose>
						
						
    	</select>
    	</td>
    	
    	 <!--空-->
			  <td colspan="2"></td>
			</tr>
			
			 <tr>
			 	<td><label>E-MAIL:</label></td>
    	<td>
				<input type="email" id="pf_email" name="pf_email" value="${List.pf_email}"><!--邮箱-->
    	</td>
    	<td><label>联系电话:</label></td>
    	<td><input type="text" id="pf_phone" name="pf_phone" value="${List.pf_phone}" /> <!--电话--></td>
    	
    	 <!--空-->
			 <td colspan="2"></td>
			</tr>
			
			<tr>
				<td><label>住址:</label></td>
				<td  colspan="3"><input type="text" id="pf_address" name="pf_address" value="${List.pf_address}"></td>
				
				 <!--空-->
			 <td colspan="2"></td>
			</tr>
			<tr>
				<td><label>身份证号:</label></td>
				<td><input type="text" id="pf_idnumber" name="pf_idnumber"  value="${List.pf_idnumber}" /></td>
				<td><label>户口所在地:</label></td>
				<td><input type="text" id="pf_residence" name="pf_residence" value="${List.pf_residence}" /></td>
				<td><label>政治面貌:</label></td>
				<td><input type="text" id="pf_politics" name="pf_politics" value="${List.pf_politics}"/></td>
			</tr>
					
			<tr>
				<td><label>毕业院校:</label></td>
				<td><input type="text" id="pf_feature" name="pf_feature" value="${List.pf_feature}" /></td>
				<td><label>专业:</label></td>
				<td><input type="text" id="pf_profession" name="pf_profession" value="${List.pf_profession}"/></td>
				<td><label>学历:</label></td>
				<td><select id="pf_education" name="pf_education">
						<c:if test="${dtList != null }">
						   <option value="0">--请选择--</option>
						   <c:forEach var="dt" items="${dtList}">
						   		<option <c:if test="${dt.id == List.pf_education }">selected="selected"</c:if>
						   		value="${dt.id}">${dt.educations}</option>
						   </c:forEach>
						   </c:if>
				</select></td>
			</tr>
			
			<tr>
				<td><label>薪酬标准:</label></td>
				<td><select id="pf_salary" name="pf_salary">
				
				
				</select></td>
				<td><label>开户行:</label></td>
				<td><input type="text" id="pf_bank" name="pf_bank" value="${List.pf_bank}"/></td>
				<td><label>银行卡号:</label></td>
				<td><input type="text" id="pf_banknumber" name="pf_banknumber" value="${List.pf_banknumber}"/></td>
			</tr>
			
			<tr>
				<td><label>社保卡号:</label></td>
				<td><input type="text" id="pf_security" name="pf_security" value="${List.pf_security}" /></td>
				<td><label>登记人:</label></td>
				<td><input type="text" id="pf_registrant" name="pf_registrant" value="${List.pf_registrant}" readonly="true"/></td>
				<td><label>建档时间:</label></td>
				<td><input type="text" id="createtime" name="createtime" readonly="true" value="<fmt:formatDate value="${List.createtime }"/>" /></td>
			</tr>
			
			<tr>
				<td><label>个人履历:</label></td>
				<td colspan="5">
				<textarea   cols="107" rows="4"  id="pf_experience" name="pf_experience"
							>${List.pf_experience}</textarea>
							</td>
				
			</tr>
			
			<tr>
				<td><label>家庭关系信息:</label></td>
				<td colspan="5"><textarea   cols="107" rows="3"  id="pf_family" name="pf_family" value="">${List.pf_family}</textarea></td>
			</tr>
			
			<tr>
				<td><label>备注:</label></td>
				<td colspan="5"><textarea   cols="107" rows="3"  id="pf_remark" name="pf_remark" value="">${List.pf_remark}</textarea></td>
			</tr>
			
			<tr  class="sc">
				<td><label>简历附件:</label></td>
				<td  colspan="3" class="file-box">
					<input type='text' name='textfield' id='textfield' class='txt' value="${List.pf_accessory}" />
					
				</td>
				
			</tr>
			
				<%-- </c:forEach> --%>
			 </table>
			
			<div id="aj"> 
					<input type="button" id="back" name="back" onclick="javascript:history.back()" value="返回" >
					</div>
		</form>
		
		</div>
		<%-- <%@include file="" %> --%>

<script src="${pageContext.request.contextPath }/static/js/jquery-1.12.4.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery.js"></script>
<%-- <script  src="${pageContext.request.contextPath }/static/js/personnelfile/add_list.js"></script> --%>
<script  src="${pageContext.request.contextPath }/static/js/personnelfile/add.js"></script>
	</body>
   
</html>


